//
//  NSDate+Custom.h
//  SKinDiary
//
//  Created by pcyang on 16/6/26.
//  Copyright © 2016年 tencent. All rights reserved.
//

#import <Foundation/Foundation.h>

#define MINUTE_TIME_INTERVAL    60
#define HOUR_TIME_INTERVAL      (60*MINUTE_TIME_INTERVAL)
#define DAY_TIME_INTERVAL       (24*HOUR_TIME_INTERVAL)
#define WEEK_TIME_INTERVAL      (7*DAY_TIME_INTERVAL)
#define MONTH_TIME_INTERVAL     (30*DAY_TIME_INTERVAL)
#define YEAR_TIME_INTERVAL      (365*MONTH_TIME_INTERVAL)


@interface NSDate (Custom)
+ (id)dataFromString:(NSString *)string;
+ (id)dataFromString:(NSString *)string withDateFormat:(NSString*)dataFormat;
+ (NSString*) getWeekDayFromDate:(NSDate*) date;

- (NSString*)formattedString;
- (NSString*)formattedStringWithFormat:(NSString*)format;

+ (NSString*)nextDateStringFromDateString:(NSString*)  strCurDate;
+ (NSString*)nextDateStringFromDate:(NSDate*) curDate;
+ (NSString*)preDateStringFromDateString:(NSString*)  strCurDate;
+ (NSString*)preDateStringFromDate:(NSDate*) curDate;

+ (NSString *)dateStringFromTimeInterval:(NSTimeInterval)timeInterval;

+ (NSUInteger) secendValueFromString:(NSString*)videoDuration;
@end
